package com.cychat.mall.params;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * Auther: 刘俊  <br/>
 * Date: 2025-11-7:上午 9:25  <br/>
 * Description: 订单参数类
 */
@Data
public class OrdersParams {
    @NotNull(message = "地址ID不能为空")
    @Min(value = 1, message = "地址ID必须大于等于1")
    private Integer addressId; // 地址ID
    @NotNull(message = "购物车ID列表不能为空")
    @Size(min = 1, message = "请选择商品")
    private List<Integer> cartIds;// 购物车ID列表

}
